 /** @file GOTHspiExtra.h This file contains the source code for the SPI-Extra Peripheral API of the 
 * GOTH Kick-ass Etherboard.
 * 
 * This API contains all commands to control, read from and write to the extra peripheral.
 *
 * @author Geoffrey Ottoy - Tom Hamelinckx
 * @date 05/07/2011 (last modified)
 * @todo To be filled with extra functions, once the peripheral is selected
 *
 * <pre>
 * MODIFICATION HISTORY:
 *
 * Who  Date     Changes
 * ---- -------- ---------------------------------------------------------
 * TH   05/07/11 Created this file.
 * </pre>
 * 
 */

#ifndef __GOTH_SPI_EXTRA_H__
#define __GOTH_SPI_EXTRA_H__

#include "GOTHglobal.h"
#include "GOTHspi.h"


#define SPI_SelectExtra() 		{LATBbits.LATB10 = 0;}
#define SPI_DeselectExtra() 	{LATBbits.LATB10 = 1;}

/** Initialize extra peripheral CS-pin for operation.
 * 
 * @return	nothing
 *
 */ 
void SPI_InitExtra(void);




#endif
